package Test6.PETSHOP;

public class Test {
    public static void main(String[] args) {
        PetShop shop=new PetShop();
        System.out.println(shop.size());
        System.out.println(shop.get(0));
        System.out.println(shop.delete(null));
        System.out.println("=====================");
        System.out.println(shop.add(new Cat("波斯猫", 1)));
        System.out.println(shop.add(new Cat("橘猫", 2)));
        System.out.println(shop.add(new Cat("折耳猫", 1)));
        System.out.println(shop.add(new Dog("柯基犬", 1)));
        System.out.println(shop.add(new Dog("波尔多狗", 2)));
        System.out.println(shop.size());
        System.out.println(shop.get(0).toString());
        System.out.println("=====================");
        System.out.println(shop.delete(new Cat("橘猫",1)));
        System.out.println(shop.size());
    }
}
